package com.sphd.emanu.fragment.goods;

import android.support.v7.app.AlertDialog;

import com.sphd.emanu.mvp.BasePresenter;
import com.sphd.emanu.mvp.BaseView;
import com.sphd.emanu.pojo.goods.Commodity;
import com.sphd.emanu.pojo.material.CommodityAndCategory;

import java.util.List;

/**
 * MVPPlugin
 * 邮箱 784787081@qq.com
 */

public class GoodsContract {
    interface View extends BaseView {

        void setBean(CommodityAndCategory category);

        void setBeanList(List<Commodity> commodityList);

        void setRes(int res, int pos, int resrverStock, AlertDialog alertDialog);
    }

    interface Presenter extends BasePresenter<View> {
        void commodityStock(Integer org,
                            Integer status,
                            Integer curpage, Integer pageno);

        void commodityStockByCategory(Integer id,
                                      Integer status,
                                      Integer curpage, Integer pageno);

        void updateCommodity(int id, Integer reserveStock, int pos, AlertDialog alertDialog);
    }
}
